import apiCreator from '../../utils/apiCreator';
import config from '../../utils/config';
const api = apiCreator();
export default {
  // 银行间债券、回购新增数据
  bondAdd: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/saveInstruction`, query),
  // 理财直融新增数据
  finaFlockingAdd: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/saveFinaflocking`, query),
  // 非标新增数据
  nonstandardAdd: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/saveNonstandardAsset`, query),
  // 获取债券信息表数据
  getBondInformationData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getTrades1`, query),
  // 获取回购信息表数据
  getBankInformationData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getTrades3`, query),
  // 获取理财直融信息表数据
  getFinaInformationData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getTrades4`, query),
  // 获取非标信息表数据
  getNonstandardInformationData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getTrades2`, query),
  //获取债券交易流水表数据
  getBondAccountData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getBondTradeFlow`, query),
  //获取债券行为流水表数据
  getBondAccountData2: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getBondXwDetail`, query),
  //获取回购流水表数据
  getBankAccountData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getBuyBackTradeFlow`, query),
  getBankAccountData2: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getBuyBackXwDetail`, query),
  //获取理财直融流水表数据
  getFinaAccountData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getFlockingTradeFlow`, query),
  getFinaAccountData2: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getFlockingXwDetail`, query),
  //获取非标流水表数据
  getNonstandardAccountData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getAssetTradeFlow`, query),
  getNonstandardAccountData2: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/getAssetXwDetail`, query),
  // 删除数据
  deleteData: (query) => api.get(`${config.interfaces.type1}productGroupTradeInstruction/deleteInstruction`, query),
  // 回退数据
  backData: (query) => api.get(`${config.interfaces.type1}productGroupTradeInstruction/cancelSplit`, query),
  // 获取行为信息表数据
  getbehaviorData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/queryGroupTradeJs`, query),
  // 获取交收模态框数据
  getSettlementModalData: (query) => api.get(`${config.interfaces.type1}productGroupTradeInstruction/getGroupTradeJsDetail`, query),
  // 交易交收模态框数据
  settlementModalData: (query) => api.get(`${config.interfaces.type1}productGroupTradeInstruction/getTradeInstruction`, query),
  // 行为交收模态框数据
  settlementModalBehaviorData: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/saveInstructionJs`, query),
};
